package com.bw.house.adapter

import android.widget.TextView
import com.bw.house.R
import com.bw.house.entity.HouseEntityItem
import com.bw.house.entity.TenantEntityItem
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class TenantAdapter:BaseQuickAdapter<TenantEntityItem,BaseViewHolder>(R.layout.item_tenant) {
    override fun convert(holder: BaseViewHolder, item: TenantEntityItem) {
        holder.getView<TextView>(R.id.tenant_name).text = item.enterpriseName
        holder.getView<TextView>(R.id.tenant_address).text = item.regionName
    }
}